-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(types): update the type definition of $el property #8809
Conversation
So as to define it as SVGElement
Just a note: this would breaks existing apps which is using |
@ktsn how do you reassign Element to HTMLElement? edit: this seems to work |
I am not a fan of this change. Does Vue really need to support components / apps on SVG elements? |
This is a 100% yes. |
This was a breaking change for our build—shouldn't it have been in at least a minor version update, as opposed to a patch update? |
@kjleitz yes we should have. It was a mistake to release this in a patch. Apologies if this caused inconvenience on your side. |
As per this merged PR: vuejs/vue#8809
As per the original Typescript definitions plus this merged PR: vuejs/vue#8809
As per this merged PR: vuejs/vue#8809
As per this merged PR: vuejs/vue#8809
As per this merged PR: vuejs/vue#8809
@yyx990803 no worries, man! Thank you guys for all your hard work. Vue is amazing. |
As per this merged PR: vuejs/vue#8809
to be able to define
$el
asSVGElement
What kind of change does this PR introduce? (check at least one)
Does this PR introduce a breaking change? (check one)
If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:
dev
branch for v2.x (or to a previous version branch), not themaster
branchOther information: